package com.pwser.util;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.hibernate.Session;

public class HibernateUtil {
	
	private static SessionFactory factory = null;
	
	static {
		factory = new Configuration().configure().buildSessionFactory();
	}
	
	public static Session openSesstion() {
		return factory.openSession();
	}

}
